<?php
namespace Home\Controller;

use Think\Controller;


class IndexController extends Controller
{
    public $wechat;

    public function index()
    {
        $this->wechat = new WechatCallBackController();

        if (isset($_GET['echostr'])) {
            $this->wechat->valid();
        } else {
            $this->wechat->responseMsg();
        }

    }


}